package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class LogRecord {
    private Integer id;
    private String name;
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date date;
    private  String ip;
    private String type;
    private String content;

    public LogRecord() {
    }

    public LogRecord(Integer id, String name, Date date, String ip, String type, String content) {
        this.id = id;
        this.name = name;
        this.date = date;
        this.ip = ip;
        this.type = type;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "LogRecord{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                ", ip='" + ip + '\'' +
                ", type='" + type + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
